package com.dididoctor.doctor.Dialog;

import android.content.Context;
import android.view.View;
import android.widget.TextView;

import com.dididoctor.doctor.MV.BaseDialog;
import com.dididoctor.doctor.R;


public class HasCardDialog extends BaseDialog {
    private TextView mTvConfirm, mTvCancel, mTvContent;
    private Context context;

    public HasCardDialog(Context context) {
        super(context);
        this.context = context;
        setContentView(R.layout.dialog_hascard);
        mTvConfirm = (TextView) findViewById(R.id.tv_confirm);
        mTvConfirm.setOnClickListener(this);
        mTvCancel = (TextView) findViewById(R.id.tv_cancel);
        mTvCancel.setOnClickListener(this);

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.tv_confirm:

                dismiss();
                break;
            case R.id.tv_cancel:
                dismiss();
                break;
            default:
                break;
        }
        super.onClick(v);
    }

}
